package com.example.javaweb1.mapper;

import com.enbatis.mybatisplugs.base.BaseMapper;
import com.example.javaweb1.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select(value = "select username,password from user1  where username=#{username}")
    User findUserByName(@Param("username") String username);
    @Insert("insert  into user1 (username,password) values (#{username} ,#{password} )")
    void insert(User user);



}
